import request from '@/util/ProRequest'

//获取工艺流程对应的任务列表
export function getProschedueTaskListByWorkflowId(workflowId) {
    return request({
        url: '/proschedueTask/selectListByWorkflowId/' + workflowId,
        method: 'get',
    })
}
// 获取权限列表
export function getProschedueTaskList(params) {
    return request({
        url: '/proschedueTask/page',
        method: 'get',
        params
    })
}

export function addProschedueTask(data) {
    return request({
        url: '/proschedueTask/add',
        method: 'post',
        data
    })
}

export function updateProschedueTask(data) {
    return request({
        url: '/proschedueTask/update',
        method: 'put',
        data
    })
}

export function queryById(id) {
    return request({
        url: '/proschedueTask/' + id,
        method: 'get'
    })
}

export function deleteProschedueTask(id) {
    return request({
        url: '/proschedueTask/delete/' + id,
        method: 'delete'
    })
}

export function batchDeleteProschedueTask(ids) {
    return request({
        url: '/proschedueTask/batchDelete?'+ids,
        method: 'delete',
    })
}